home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / killexpr / RCS / killexpr.man,v < prev   
Text File  |  1990-03-01  |  2KB  |  81 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     90.02.28.23.01.01;  author jhh;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @'\" Copyright 1990 Regents of the University of California
  26. '\" Permission to use, copy, modify, and distribute this
  27. '\" documentation for any purpose and without fee is hereby
  28. '\" granted, provided that this notice appears in all copies.
  29. '\" The University of California makes no representations about
  30. '\" the suitability of this material for any purpose.  It is
  31. '\" provided "as is" without express or implied warranty.
  32. '\" 
  33. '\" $Header: /sprite/lib/forms/RCS/cmd.man,v 1.2 90/02/20 17:11:01 douglis Exp $ SPRITE (Berkeley)
  34. '/" 
  35. .so \*(]ltmac.sprite
  36. .HS KILLEXPR cmds
  37. .BS
  38. '\" Note:  do not modify the .SH NAME line immediately below!
  39. .SH NAME
  40. killexpr \- Kill all processes who match the given expression(s)
  41. .SH SYNOPSIS
  42. \fBkillexpr\fR [\fIoptions\fR] \fIexpr expr...\fR
  43. .SH OPTIONS
  44. .IP "\fB\-h \fIhost\fR" 15
  45. Kills processes on the machine \fIhost\fR. The default is to kill processes
  46. on the local host.
  47. .IP "\fB\-help\fR" 15
  48. Print a summary of the command-line options.
  49. .BE
  50.  
  51. .SH DESCRIPTION
  52. .PP
  53. The \fBkillexpr\fR command
  54. is used to a user's processes whose command line contains
  55. one of a set of regular expressions.
  56. The regular expression arguments are 'or'ed together to form a single
  57. expression that compared to the command lines of the user's processes.
  58. If a match is found the process is sent a SIGTERM signal, followed by
  59. a SIGKILL signal.
  60. The expression arguments are often simple strings, but can be more
  61. complex regular expressions of the form found in Perl.
  62. A process will be killed even if the expression matches only part
  63. of a word.  
  64. If you want the expression to match an entire word in the command line
  65. then you should surround the argument with spaces.
  66. .SH EXAMPLES
  67. .PP
  68. .IP "killexpr foo"
  69. Kills all processes that have the pattern 'foo' in their command line.
  70. .IP "killexpr ' foo '"
  71. Kills all processes that have the word 'foo' in their command line.
  72. .IP "killexpr foo bar
  73. Kills all processes that have either the pattern 'foo' 
  74. or the pattern 'bar' in their command line.
  75. .IP "killexpr '^foo'
  76. Kills all processes whose command line starts with the pattern 'foo'.
  77. .SH KEYWORDS
  78. kill
  79.  
  80. @
  81.